package com.erp.app.catalog.itemMaster.criteria;

import com.erp.framework.model.criteria.SimpleSearchMaintStyleSrchCriteria;

public class ItemMasterCriteria extends SimpleSearchMaintStyleSrchCriteria {

	//Searching Criteria Attributes 
	private String companyCode;
	private String itemId; 
	
	private String articleNo;
	private String itemDesc;
	private String srchText;
	private String nodeIdList;
	
	private String userCode;
	
	public ItemMasterCriteria(){
		
	}
	public ItemMasterCriteria(String companyCode, String itemId, String articleNo
			, String itemDesc, String nodeIdList, String srchText, String userCode){
		this.companyCode = companyCode;
		this.itemId = itemId;
		this.articleNo = articleNo;
		this.itemDesc = itemDesc;
		this.nodeIdList = nodeIdList;
		this.srchText = srchText;
		this.userCode = userCode;
	}
	public ItemMasterCriteria(String companyCode, String nodeIdList, String srchText, String userCode){
		this.companyCode = companyCode;
	
		this.nodeIdList = nodeIdList;
		this.srchText = srchText;
		this.userCode = userCode;
	}

	public String toString() {
		String pkStr = "PK:{itemId=" + this.itemId + "}\n ";

		String colStr = "COL:{articleNo="+this.articleNo+", "
					  + "itemDesc="+this.itemDesc+", "
	     			  + "nodeIdList=("+this.nodeIdList+")}\n ";

		String mandatoryStr = "";

		return "toString() is:\n" + mandatoryStr + pkStr + colStr;
	}
	////////////////////////////////////////////////////////////////////////////////
	//Generated Accessors (get/set methods) for searching criterias
	////////////////////////////////////////////////////////////////////////////////

	
	////////////////////////////////////////////////////////////////////////////////
	//Other Accessors (get/set methods)
	////////////////////////////////////////////////////////////////////////////////

	public String getArticleNo() {
		return articleNo;
	}
	public void setArticleNo(String articleNo) {
		this.articleNo = articleNo;
	}

	public String getItemDesc() {
		return itemDesc;
	}
	public void setItemDesc(String itemDesc) {
		this.itemDesc = itemDesc;
	}

	public String getItemId() {
		return itemId;
	}
	public void setItemId(String itemId) {
		this.itemId = itemId;
	}

	public String getNodeIdList() {
		return nodeIdList;
	}
	public void setNodeIdList(String nodeIdList) {
		this.nodeIdList = nodeIdList;
	}
	public String getVOClassName(){
		return "com.erp.app.catalog.itemMaster.vo.ItemMasterVO";
	}
    public String getThisClassName(){
    	return "com.erp.app.catalog.itemMaster.criteria.ItemMasterCriteria";
    }
	public String getUserCode() {
		return userCode;
	}
	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	public String getSrchText() {
		return srchText;
	}
	public void setSrchText(String srchText) {
		this.srchText = srchText;
	}
	public String getCompanyCode() {
		return companyCode;
	}
	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}
}
